/**
 * 
 */
package group.anglers.bpmn.general.services;

import java.util.List;

import group.anglers.bpmn.general.context.ExecutionContext;
import group.anglers.bpmn.general.ei.EIProcess;
import group.anglers.bpmn.general.errors.ArgumentException;
import group.anglers.bpmn.general.errors.UnExpectedException;
import group.anglers.bpmn.general.errors.WorkflowException;

import javax.ejb.Remote;

/**
 * @author an.pham
 * 
 */
@Remote
public interface ProcessService {
	public void deploy(byte[] bytes) throws ArgumentException, UnExpectedException;
	public List<EIProcess> retrieveAll() throws UnExpectedException;
	public void start(String processId, String packageName, ExecutionContext context) throws ArgumentException, WorkflowException, UnExpectedException;
}
